package com.token.test.get;

import com.token.sysflow.action.GetPathApproverAction;
import com.token.test.util.FuncUtilTest;
import com.token.test.util.IntegrateSqlTest;
import org.apache.commons.io.FileUtils;

import java.io.File;

/**
 * @author chenjianxiong
 * @date 2020/4/27
 */
public class GetSubmitStepTest1 {
    public static void main(String[] args) {
        FuncUtilTest f;
        IntegrateSqlTest iSql;
        GetPathApproverAction submitFlowAction = new GetPathApproverAction();
        try {
            String path = submitFlowAction.getClass().getClassLoader().getResource("json/GetPathApprover.json").getPath();
            String json = FileUtils.readFileToString(new File(path), "UTF-8");
            f = new FuncUtilTest(json);
            iSql = new IntegrateSqlTest();
            iSql.initCon();
            submitFlowAction.executeAction(f, iSql);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
